Adjusted patch functions to get ID from path.