Moved acc, mag, gyr into own def statements