Make it mostly work without crashes