Adding zlib support, event type