Add a deprecated function