This method is only used here. We should just put its contents here instead.