Finished code.  Rearranged Collect, placebet, and other methods