Proof of concept

And mostly working