Removed the extra boolean parameter added to know when to unref the