Use the new function to get write location path