Improoved shake detector