Replaced rsrc with rdef