Added the play_freq method and supporting private methods.
Added some play_freq tests.