Moved global function into Utils