Fix many bugs on the starting and execution of CS.
Add debuging showing of the results. For now we have some spurius results.