Pass in pubReference.