Add own replacement algorithm