Added weights for labels in each autocontext loop.