It's ugly, but it works now.. I think. Now to make it pretty