Adding the file to open as a parameter to pass through