Made the resource format more generic.