Changed alarm_time from unsigned int to int.