Added functions related to forming group of fours.