Added replace option.