Started implementing saving of models to file.