Updated for new JSON resource fetching.