I wonder whether we could write this more efficiently? Except for setting a different key in the results object both these callback functions are doing the same.