Added a third parameter to the callback, so the calling code can see the internal parsing results