Use $options for listFiles().
Renamed and fixed listFiles().