Put stuff from output to their proper place.