Tweak appearances dot algorithm for wider ranges