Move the function to the root of the file.