Some template code for our remaining cases.