First version of trip type functionality.