Minor changes to pathing method

Cleaned up some variable names to improve consistency