Config function.