Changing module functions to globals.