Cleaning up getPath