Use a struct to store configure parameters.