Added ability to get statistics