Update app/controllers/external_functions_controller.php