Add methods to safly execute an action