Tuning the frequency_hash functions and border finder.