Revert "Remove unneeded function"

This reverts commit b77cc03451c2238a4c0adce6eee4d9c729a63212.
Simplify settings