Some fixes with Stackvoreflow errors. It now stops the processor