Pass ValueMap by reference