Update with shaking function.