Cleaned motor_init