Added custom event decoding.