Add source attribute to resources.