Change frequency datatype from int to uint32_t