Add support for granularity (scotch).