Use new API for f-write.