Updated from a deprecated method.