Refactor re-launching.