Monkey patch. Removed deprecated method.