Get rid of the auto-launch code. It's just causing problems.