Implemented break, stop, pause and resume functionality