Give type signatures to the handlers