First working, minimal(ish) version.