Generate exits and pits.