Add localhost properties and move config initialisation