Added option for relative frequencies. Actually seems to perform worse.