Add option to fetch resources. (thanks Jonty800)