Added velocity calculation from acceleration data.