Rewired up the rest of the devices. All functions working now.