Added calcSymmetry