Added frequency analysis.