Specify signatures for callback functions