Fixed most things. Should run without crashing.