Add capability to work with file handle