Added additional check to verify the sanity of processing chain