Added check before executing post processing