Address warnings for deprecated methods.