Added vertex count argument.