Added Statistics

Fixed bug