Switch to using let instead of def for files agent