Swapped LI and BEQ functions