added min freq option