Added the fetching code, mostly finished except for a couple things...