added pause option