Sorry to be nitpicky, but can you make this `root >= 0`? It feels much more natural.