Added function onComplete to the funtion 'call'.