Attempted to fix the weighter by making it simpler and easier to read