Added ability to clear by shaking device.