Adapt scene and main for a clean startup.