Implement deprecated function with warning