Uncommented save function