Added support for Success/Failure/Before actions

will change it now....