Updated the deprecated methods
Merge pull request #3 from MohammedFadin/master

Updated the deprecated methods