Fixing deprecation warning.
Merge pull request #1 from russ/master

Fixing deprecation warning.