Added code to load relative and group directions into an appropriate data structure