Mains uptime implemented