Rather than assigning to the global namespace, can these be returned instead?