Change parameters for map function in QM.collect

- key and source object are now passed