It functions, now I have to clean it up a lot