Removed a bit of dead code. Added more comments in proxy_event_handler()