Added ReplacementHandler class