Removing three deprecation warnings.