Enable flight stats API and fix its usage.