added pause, reset and continue feature