Added Launch state and button.
Improved suspend / resume code.
Various bug fixes.