Added output flag