Fixed example logic.