Local function setVariable() must be defined before invocation in processIncomingMessages() function.
Merge pull request #9 from bblacey/master

Local function setVariable() must be defined before use.