Revert "Get rid of unused method"

This reverts commit f122278b7649ef13ae0455b6862315e08080fb80.