Finalise the structure, adding in all needed data.