Add broken logic encoder