Added config function.