Keep inputs in sync.