Renamed some things, inserted numCopies.