Segment out setup routines.