Initial implementation of event tracking.