utility to keep record of math related events.