How to have 2 loops running at once?