Added code to get the most recent file handle