Motor controller converted to object