Added support for afterChange event