Added some functions to open and extract a file.