Support callbacks that are not objects