Changed accelerometer to use X and Z axes, not Y