Update config helper function