Add frequency value and improve error message.