Rebasing my fork to the original version at https://code.google.com/p/lire change r174.