Initial import of https://code.google.com/p/dabr/ r524