Updated link.py with proper delays.