Added support for reading program from file.