Added accel data handling