Added initial code for evaluating bonuses.