Adding base class for file formats.