Changed time costants to unsigned long.