Revert "Remove unused method"

This reverts commit 8567b836122bb23a8f1e158706f46cc2c7d45915.