Fix error with config values not getting assigned to variable variables
Fix deprecated functions