simplify without lrem
Merge remote-tracking branch 'upstream/master'
Merge pull request #5 from georgeye/master

Stop using lrem.