Use the file extension of the returned object