Implemented stop, start, pause and resume in FFI.