-Move declaration of callevents variable out of the block of function declarations.