RGL is now a general Distribution.
Adding pattern calculation to RGL.