Cleaned up resource fetching.