Simplified callAPI

Simplified structure and added trace if ExternalInterface is not
available.