Slightly improved Lc check.rb