New Functionality to GetRef()

GetRef() now takes to variables that handle reference counting and the
data can be release from this object.