Improve rotation code for ARD Gaussian