Capture background command output.
Test ouput capturing.
Add polling.