Adding group to the method result.