Formatting prefs and accelerometer