Fixed bugs so the links are now outputting