Add frequency detection