Completed a minimal working version.