Refactored Main, extracted TimeHelper, added NetworkController interface