Start refactoring and making this thing make sense.