Prompt upgraded so that it doens't fail on EOF input.