Added event tracking.