Avoid use of obsolete method.