Use function to find config