Avoid globally scoped functions