We should probably move this out to helper methods.