Finally, a practical use for math.