Added support for multiple motors