Fix File Handling. It now works.