It fucking works! or at least shares the same bugs than the implementation I used for reference