Changed level saving to add the name attribute