Added a system of weighted preferences to the