Added reboot and shutdown functions