Added handling in case 0 is put in as time.