Made the timeout configurable per-filetype