Documented and completed external_function