Added a function replace tool