Replace with function.