Added ShakeDetector. First pass at tuning.