Add some basic statistics
Bugfix in check_ia_using_search