Using replaces instead of deprecate.