Replaced deprecated methods in readme.