Added replace method