Got rid of hardcoded urls and ports