Initial working version.