Background with stacks.

Added ability to report segments in background tasks.