Added counting hours and fixed printing