Added a pause option