Use the global var for frequency limit

Thanks @martinfilliau