Added the ability to read from a file of certain format.