Removed Pause function, makes code smaller and efficient