Added automation to to find first file for lookup