Address the deprecated Config warning

Small change to remove warning messages, by addressing the deprecation.