Implemented motor emulator.