Abstracting stats retrieval into functions