Added symmetry checker function