Added script exec to patch mechanism