Added ability to specify the metadata fields to be returned in the response