Implemented external function calling.