Enhancement to path functions