Initial commit of slimmed down code from /MOL