Updated summary_as_hash functions for the REST API