piggy: added code to handle requests for accelerometer requests.