Add function to spectral cluster