Documented it with comments, but I don't see it necessary to make a separate function.