Added primitive save functionality