Simplified pause code a little