Fixed accelerometer declaration.