First working version

It might me not that convenient yet, but at least it does what it was
made for