Import of libre from http://www.creytiv.com/re.html