Pause and Stop functionality added.