Use an object to avoid global state.