Primitive LMR

But by the looks of things this works pretty well. Could be improved by
adding an in check function