Added method replace