Added input function.