Added methods to get queue lenght and connection status