Use a custom function to get the requested format