Changed MINUTE and HOUR variables to larger variable containers MINUTE to unisnged int and HOUR to unsinged long