Adding (untested) LCS code.