Add path printing - the code is a mess.