Change frequency constants to int in stead of string