Modify script to allow warnings