Update resource.c