Removed peak detection code from graphs