Added last group access logic