Didn't notice I had ported this without respecting the original license of the ported software, so: here we go!