Started work on new API: stats and pool library.