Don't use internally deprecated methods
Merge pull request #224 from anton-ryzhov/no_deprecated_methods_usage

Don't use internally deprecated methods