Added replace templates