Removed the selectLastFile() - it does not do the right thing here.