Most of the input is done.