Added getInpText function.