Added code to actually create the devices.