Deprecated method.