Adding some boilerplate stats code.