Added n-gram distribution analysis