Clean-up API calling.