Make the metadata readonly. Add some comments