Added related links function