[PATCH 2/2] Cochran: Added event handling to TM model