Moves the LCS checks into their respective functions