Used iostreams to pipe idock cout to a pipe for parsing progress