Added repo, and handling for client disconnects.