Mostly working, found some bugs with parameters passed incorrectly, still, some objects seem to not copied by passed by value...