Added coarse-graining for lines and no-lines