Add outputing stuff to file