Added functionality for increasing the frequency of straight-line pieces as piece size increases.