mr_init_devices.c: Some changes