More changes to the code so as to try and reliably detect the RDFT lead
in tones.