Add case for when file is open