Dont construct output if it is not needed