Refactoring submarine timer.