Adding code for generating function calls.