Fixed some major bugs. PARTIALLY working.