Use the stack limite in EventListener. Add some constness at the right places.