Make output file optional