Rewrote for use with Wikipedia API