Changed loop to include if statement.  Change stats collection