Added restrictions for Text file