Changed order of gettings links and making output writable