Very first version. Proof of concept that seems to work!