Added rudimentary stats function