Minor change in pause function