Update main function
Update links