Optimization on GPU/CPU working ok. Still have to correct E///.-