Fixed compile issues, removed freq from mtypes