Will calling functions outside the script work this way?