Added env line at top of file to be able to execute script through command line