Added plugin function buildPreProcess.