Add background thread support

Document background threads