Add stdout monitoring feature