Added input procedure