This can be a separate pass/phase at the end of the plug phase, or could be part of the exec phase to make it simpler