added simple frequency capability