Limit number of tasks