Small modifications to tune the decision code