There's got to be better names for these functions.