PoC logic updated. Buggy and horribly implemented, but works. _Needs_ to be refactored