Added code for function parsing.