Changed the way lrec works