It works!

Fixed a bunch of stuff so now it works properly.