Currently, 3D printing, and in particular fused deposition modeling (FDM), employ constant extrusion temperature and head velocity. It is important to note that the level of control currently available in FDM is similar to that in other 3D printing techniques, such as laser sintering, and thus the concept of closed loop control detailed here is applicable to other methods. Because the processing parameters remain constant, there is limited control of the interfacial healing. In order to control part quality of 3D printed parts, we suggest to vary the temperature of the extruder filament by using a secondary heat source. In more detail, while the temperature of the die is set to a relatively low point, an infrared heating source is used to heat the filament to the optimum temperature to enhance welding of the filament to substrate.