Tested all aspects of possible tests and ran into a few bugs, fixed them and code should work as 100% expected at least according to my test runs.