Fixing how the script should be executed