Shaking code added