Added option to read from file