Got rid of the crashing, but some weird effects are still occuring.