Get a callback function from arguments