Change type of listing function (for left recursion).