Added preprocessing handler (executed for each fold).