Changed input to stdin