Adds own repleacement algorithm