Add refresh logic, and remove old links if needed.