Updated for 3 or more tasks test