Add before and after event proxies