Refactored stats a bit.