Fixed warnings for deprecated methods.