[Demo] - Main Loop refactored in a select