Tools for associating codes with paths