Added dectection for single files