Changed way files are opened