Added convenience function to join ref.