Implemented events and proper action execution.