How to manage multiple tasks