Work in preparation for preferences UI.