Separated travel time code into a library with a class to prevent excessive file reading