Avoid global function