Give some structure to a big function.