First implementation of LR finished