Maybe this should be moved to the top of the file.