Added functionality for working with files.