Add reboot and application launch code.