Adds solution for LEXF, not particularly elegant, but pretty fast.