Adds max_processes argument to grid_map function for consistency.