Added simple mode and fixed nullglob bug.