Deprecated API

The method has been deprecated.