Added check to ensure preBuild and postBuild are only emitted for new records, rather than in every select