Handle 'power off' better. Needed to refactor range check.