Add multi-world per device support
Add wait() to each call for a cl function for synchronization
Add max_generations and remove sleep between steps