Implemented pause function for scenes.