Final collated code.