Add function to get path