Add code for path functionality