Added Acceleromiter code