Use subprograms for path generation.

These subprograms will play a role when scoping shtuc.