added match window and statistics