Changes: Added support for file handling.