Stock Stats refactoring.