Add connecting and status code as outputs