Use the struct to reduce arguments in functions.