Save resources in context