Adding file opening.