Added setInterval to check the time every hour