RM: added pause functionality