Tweaks to Wikipedia API function