Added evaluating weights procedure