Updated detrending - only removes slope