Final version as of 31.07. Functional!