A simple program to detect frequencies.