added a stats wrapper.