Add check for list to make both agg funcs parallel