Added local socket and moved to event loop.