parseFunction function

Parse function for later use