Updated to use IoT directory