Fixed that code, updated the StackOverflow thread online and cooked this.