Fixed errors. Still crashes thou. Will fix soon.