I think it is strange to declare it as a global function.
What's your opinion?