Wrote cave generator.