Deleted writeVisualScenes and lights