WIP - beginning to support tailing if statements. This introduced some complexity into the function body scanner