Simplifying masses code.