Renamed function call as per a deprecation warning.
Merge pull request #35 from kyledewey/fix_deprecation

Renamed function call as per a deprecation warning.