Added frequency analysis