Fixing up ToGPUIR