Initial commit

Moved from GIST.