Feature/provisioner apis

You can add one more check - if numToAdd <= 0 then break;