Revert "Deleted an unused function."

This reverts commit 80a74c0b291e4ad0736d76c95ce4f594851404f2.

That function is definitely NOT unused!