Made the function in config work to some degree