Adds resource limitations for tasks