Added afterProcess event