Made pid and socket path configurable