Adding oneveryevent callback