Added some error checking if there are no arrival times