Modified API to expose underlying fd.