Added checkbox for debugging that determines whether to 'restart' the device or not