A ton of fixes. It works now.