Added logging for debugging inserting an event