First commit of a working version.