This could be moved into the if condition above.