Added device shake dection.