Updated pause functionality.