Re-order code. Also, stop making believe that memory is scarce.