Added accelerometer initialisation