Added initial app restarting.