Refactoring for readability. Sound pausing and volume controls.