Add function to produce grant matrix using output first methodology