Added file opening