Crude first working version.