Finishing up the reproduction function