Corrected instance variable assignment for outputs.