Added accelerometer! Compiles, but haven't tested yet.