Refactoring TimeManager, created PocketManager