Store the last command at the beginning of the "puts" method -- prevents short-circuits from not setting the value