Adding file open functionality