Line shifted above and optimized, as we already have the NUIManager class from the registry.