Add isShaking and swap iteration method.