Fixed incorrect #define
Added listener.h (listener chain API)