Added event increment function.