Original SmartThings code as the baseline.