Rewrote wins and caps, added search