Add a simple device io routine to print routine code Fix variables due to recent Windows update to 19569