Created wrapper function for paths