Revert "Remove unused method"

This reverts commit 1bf92efb0f971f8094ba1780bb6c7585b0d4adf4.