Wrapped file reader in a callback to properly add files