Added hook replace