Updated the warnings about deprecated API