Redone functionality, at least  gets IP address