Silence warning: variable 'buffer' set but not used.