Modified the invoke scripts