Some early plumbing towards supporting account statistics