Adding deprecating warning