Fixed 0-packet bug, added forced end time.