Add unused message detection to missing message detection