Filling model metadata and saving