Added shell elements to output
Repleaced couts with debug4s