Replace deprecated methods.

Resolves #1033.
Merge pull request #1034 from rjackson/remove_deprecated_methods

Replace deprecated methods.