Add statistics collection to application. Add statistics view.