Updated launch code