There have been a few times I have wanted to add a debug log in one of these functions, but currently that causes a massive rebuild. Let's just move these out of line.