Added logic rules and manipulations to all devices/rules.