Second try to fix accelerometer declaration.