Added the initial functions for retrieving stats