Store string paths in the pendingFiles queue instead of functions