Shaking Function(Actually Complete)