localMaxima and skips working