Initially written 2011

Moved from internal repo to public