Update variation logic.