Accelerometer and socket implementation