@Override
	public String getReply(String message, String pnumber) {
		if(state==-1){
			message=convertMessageFromShortcut(message);
			state=0;
		}
		if(state==0){
			state=state+1;
			return "Choose Your preferLangauge\n"+ getListOfLanguage()+"\n"+getLastLine();
		}
		if(state==1){
			int option=MessageHandler.getMessageOption(message);
			Language[] languages=Language.values();
			if(option>languages.length)										//WE MAY SET delete session to true here or if we want to give user another chance we may continue.
				return RMessage.INVALIDOPTION.getMessage();
			else setLanguage(languages[option-1]);
			
			String reply=new PIDGetter(getUserID(),pnumber,this,false,getLanguage().getLanguage()).getReply(message, pnumber);
			if(deleteSession==true)
				return RMessage.NUMBERNOTRECOGNISED.getMessage();
			else if(pid!=null && reply==null)
				return ("Hello "+getPname()+" "+handleStateOne(message));								//PID Found as only one patient with that number exist.
			else if(reply==null){
				deleteSession=true;
				return RMessage.NOTHINGTOREPLY.getMessage();
			}
			else
				return reply;
		}
		
		if(state==2){
			deleteSession=true;
			return ("Hello "+getPname()+" "+handleStateOne(message));
		}
		return null;
	}