Initial commit, working version.