Changed the underlying representation of the LHL grid. Should now work with different phases
New scripts