Added a function call to the external file function