Moved the global function to the root src folder.