Motor control added