Fixed some shitty random stuff so that things work.