Added _onRequest and _onResponse events