Add circshift and logsmooth