Changed input function.