Deleted unecessary variables. Fixed stuff.