Was using a deprecated function.