Implemented function calling.