Make it possible to use any kind of callable as submit handlers