Moved time functions from new routes to custom module