Moved Num_Executed_Tasks[] array editing out of 'if(display)' condition