Fixes #3: smoother offset change