Add the possibility to register listeners with context.on