Change deprecated func.