Adding some methods for opening/closing files.