Hack in very simple file detection