Use post processor instead of custom code.