Split in functions. Done input.