Pause and play using "-p"

Added the -p flag to enable the feature.