Added a circular buffer for the spectral dimension