Prepare for loading different types of objects from file.