Add adjustable threshold for shake events