Add acelerometer detection.