Add selection function to data
Add spectra tool