Allow passing a callback with file descriptors