Don't execute the function when run as script
Going to move to injecting/starting functions.
Don't need this anymore.