Added deprecated message. [ci-skip]