Implemented motor direction