I need the ContFun and EventHandler to have a common state