Is there a reason why this function is now in global scope?