Added the code that would push events into the table.