Changes to the code and way of the script to work, on case of a 404 the script will die and inform of the error