Is there a reason why this has to be in global namespace instead of, e.g., in the main() function ?