Added roughly what the code should be, need to test now.
Started testing manually, fixed issues with routes.