Implementing std out to only process 0