Replaced entire script with a patch