Changed combine function.