Closer mimic of file interface.