Added support Event object as an event listeners.
Added method delegate.
Refactoring.