Relaxation algorithm working.