Updated sharedref usage