Outlines for main routines.