Finished implementing path parsing functions.