Fixed bug in evaluation and updated weights.