This seems to be the same as line 35, pull it out of the `if` blocks?