Was using a deprecated method