Added due code to run motor