Optimized Travel Times model code