Updates #23 by adding a metric for external function calls