Sorry, I thought you were referring to the second modification, the one for AnswerLib.
Alex provided unmodified code, but from a development version. This code is not the same as, and cannot be used with, TTX 2.20. He was just trying to help "mikedomain" find the right place to apply a modification. He did not provide the solution to the problem, he only pointed out where to perform it.
This is why "mikedomain" asked for more specific instructions in his next post. But after a while, he saw the solution and applied it - but he hasn't posted it here.
That certainly explains why I had to ask so many questions.
Thank-you!