Changed TimeProvider to static func