Ternary operator ok.
Works ok. about to separate out the building of the comutations object.
Well! That seemed to go ok!.
Should be enough for tomorrow.