Finished first working version.