First seemingly workable version