Basis for legality checks - in progress
Merge