Add pre-action script