Implemented motor functionality