Removed DeprecationWarning

Resolves issue #10