Changed hard-coded address to localhost