[Misc] Replaced deprecated method calls (and added a new one ;))