Naive working version.