Relaxing submitHandler a bit to be less brittle.