Changed outputs from blocking to non-blocking