Same as line 55, this should be moved out of the if statement.