Update scripts and patches