Changed deprecated calls
Merge pull request #2 from franmomu/deprecated_calls

Changed deprecated calls