Callback functions must have the correct signature