Added check for global namespace