Modified main
Added proxy event