Added experimantal code to generate outline.