Version with confusion not working

Commit to show christopho the code and try understand why it is so messed
up.