[Investigatin] Working but not fully
Such a mess of code, but kind of works !
Merge pull request #6 from velislavkostov/master

Mess of code, functioning just about right.