Added support for multiple causeActions.
Cleaned up some warnings.