Add event framework first developed in batch structure checker