Improved events by adding reference variables
0.3.1