Partial implementation of function calling.