Fix clients iteration
Fix correct messages not acking
Finish migrating tweety code