Changing Metadata to hashmaps in progress.