Loop tweaks- and localhost server