Changed to accelerometer and added plugin in config.xml