Write custom levels to file when a new one is created