Added code to traverse trails. There is still a lot of uncertainty about data
access methods. This is just a placeholder to show how it's done.