Added better accelerometer stuff