Added the concept of actions with success and failure.