This function should not be located where variables are declared, it should be moved to the end of the file.