Implemented event based gateway and adjusted pizza test acoordingly.