Adds event tracking