Is there a reason to pass both a number and a list of accounts?  Doesn't the latter contain the former?