Added example for external function