Refactored Time Server implementation.