Modified to use internal implementation of ActionSetFailed