Updated deployment script once again, fixed bug with error detection and added end result evaluation