Made the stdout optional