Added a power switch