Add options to choose between coarse and fine grained