Statistics commit

Statistics implemented.