Adding spect file type detection