Fix frequency counter + debug module